<include file="Public/head" />
</head>
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar"  menu="shgl.qydd" />
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="get_list(1);" class="yuCurrent">待分配</li>                  
                <li onclick="get_list(6);">签约成功</li>                    
                <li onclick="get_list(7);">签约失败</li>
            </ul>
        </div>
        <div class="listBox" id="listBox">
            
        </div>
        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
    get_list(1);
    function get_list(status,business_status){
        var url = "/Sign/getList";
        if(status==6 || status==7){
            url = '/Sign/resultList'
        }
        var post_data = {"status":status}
        _get(post_data,url)
    }
    function get_page(p){
        var data = $("#searchFrom").serialize() + "&" +encodeURI("p="+p);
        _get(data);
    }
    
    function search(){
        var data = $("#searchFrom").serialize()
        _get(data)
    }

    function _get(data,url) {
        if(typeof(url) == 'undefined'){
            var status = $("#status").val();
            if(status==6 || status==7){
                url = '/Sign/resultList'
            }else{
                url = "/Sign/getList"
            }
        }
        $.get(url,data,function(data){
            $("#listBox").html(data);
        },"html");
    }
</script>
<include file="Public/foot" />